import type { SearchList } from "@/types/form";
import type { TreeDataNode } from "antd";

// 搜索数据
export const searchList = (): SearchList[] => [
    {
        label: "订单编号",
        name: "module",
        wrapperWidth: 230,
        component: "Input",
    },
    {
        label: "车厢编号",
        name: "option",
        wrapperWidth: 230,
        component: "Input",
    },
    {
        label: "日期",
        name: "username",
        component: "RangePicker",
        componentProps: {
            allowClear: true,
        },
    },
];
export const treeData: TreeDataNode[] = [
    {
        title: "-- 请选择 --",
        key: "0-0",
        children: [
            {
                title: "2024090002",
                key: "0-0-0",
                children: [
                    {
                        title: "20220500123",
                        key: "0-0-0-0",
                    },
                    {
                        title: "20240529007",
                        key: "0-0-0-1",
                    },
                    {
                        title: "20240529008",
                        key: "0-0-0-2",
                    },
                ],
            },
            {
                title: "20240529002",
                key: "0-0-1",
                children: [
                    {
                        title: "20240529002-2-1",
                        key: "0-0-1-0",
                    },
                ],
            },
            {
                title: "20240529003",
                key: "0-0-2",
                children: [
                    {
                        title: "20240529005",
                        key: "0-0-2-0",
                    },
                    {
                        title: "20240529006",
                        key: "0-0-2-1",
                    },
                ],
            },
        ],
    },
];
